#header-menu-toggle-menu.toggle-menu.header-toggle-menu-menu.hidden

  = link_to "/" do
    = icon_map_tag(icons, "home", ["icon-with-text"])
    = t("header.home")

  = link_to new_listing_path, :class => "hidden-tablet" do
    = icon_map_tag(icons, "new_listing", ["icon-with-text"])
    = t("homepage.index.post_new_listing")

  - if @current_community.configuration.display_about_menu?
    = link_to about_infos_path do
      = icon_map_tag(icons, "information", ["icon-with-text"])
      = t("header.about")

  - if @current_community.configuration.display_contact_menu?
    = link_to new_user_feedback_path do
      = icon_map_tag(icons, "feedback", ["icon-with-text"])
      = t("header.contact_us")

  - if @current_community.configuration.display_invite_menu?
    - with_invite_link do
      = link_to new_invitation_path do
        = icon_map_tag(icons, "invite", ["icon-with-text"])
        = t("header.invite")

  - Maybe(@current_community).menu_links.each do |menu_links|
    - menu_links.each do |menu_link|
      = link_to menu_link.url(I18n.locale), :target => "_blank" do
        = icon_map_tag(icons, "redirect", ["icon-with-text"])
        = menu_link.title(I18n.locale)

  - if @current_user && @current_community && @current_user.has_admin_rights?(@current_community)
    = link_to admin_details_edit_path do
      = icon_map_tag(icons, "admin", ["icon-with-text"])
      = t("layouts.logged_in.admin")

  .hidden-desktop
    - if available_locales.size > 1
      .toggle-menu-title
        = t("layouts.global-header.select_language")

      - locale_change_links.each do |locale_change_link|
        %a{href: locale_change_link[:url]}
          = locale_change_link[:title]
